var core = require('core');
/* GET home page. */
var POST = function(req, res, next) {
    var Region = new core.db.schema.Region(JSON.parse(req.body.region));
    Region.save(function(err, doc){
        if(!err)
            res.send("success\n"+JSON.stringify(doc));
    });
};

var GET = function(req, res, next) {
    res.render('region', {});
};

exports.GET = GET;
exports.POST = POST;
